﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControls_QuanLy : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if ((string)Session["EMAIL"] == "")
        {
            this.Visible = false;
            lblEmail.Text = "Bạn không phải thành viên";
            
        }
        else
        {
            lblEmail.Text = (string)Session["EMAIL"];
            this.Visible = true;
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Session.RemoveAll();
        Response.Redirect("dangnhap.aspx");
        
    }
}
